using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AttackUpward : KoishiEffect
{
    public Attack attack;
    public ButtonInput buttonInput;

    void Start()
    {
        attack = owner.gameObject.GetComponent<Attack>();
        buttonInput = owner.gameObject.GetComponent<ButtonInput>();
    }

    void Update()
    {
        MoveWithOwner();
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.CompareTag("enemy"))
        {
            attack.HarmEnemy(collision);
        }
    }
}
